//
//  BindHelpController.swift
//  Pods
//
//  Created by 易先生 on 2022/9/9.
//

import UIKit
import MYModule

class BindHelpController: ViewController {

	override func viewDidLoad() {
		super.viewDidLoad()
		navigation.item.title = "binding_help".language
	}

	override func makeUI() {
		super.makeUI()
        
        view.backgroundColor =  UIColor.darkBackground
        
		view.addSubview(topView)
		view.addSubview(centerView)
		view.addSubview(bottomView)

		topView.snp.makeConstraints { make in
			make.top.equalTo(self.topLayoutGuide.snp.bottom).offset(15)
			make.leading.equalToSuperview().offset(15)
			make.trailing.equalToSuperview().offset(-15)
		}

		centerView.snp.makeConstraints { make in
			make.top.equalTo(topView.snp.bottom).offset(10)
			make.leading.equalToSuperview().offset(15)
			make.trailing.equalToSuperview().offset(-15)
		}

		bottomView.snp.makeConstraints { make in
			make.top.equalTo(centerView.snp.bottom).offset(10)
			make.leading.equalToSuperview().offset(15)
			make.trailing.equalToSuperview().offset(-15)
		}
	}

	private lazy var topView: BindHelpView = {
		let topView = BindHelpView()
		topView.configTitle(title: "binding_help_question1".language,
			desc: "binding_help_answer1".language)
		return topView
	}()

	private lazy var centerView: BindHelpView = {
		let centerView = BindHelpView()
		centerView.configTitle(title: "binding_help_question2".language,
			desc: "binding_help_answer2".language)
		return centerView
	}()

	private lazy var bottomView: BindHelpView = {
		let bottomView = BindHelpView()
		bottomView.configTitle(title: "binding_help_question3".language,
			desc: "binding_help_answer3".language)
		return bottomView
	}()
}
